{% extends 'teacher/teacher_base.html' %}
{% block title %}   
<a href="{% url 'teacherManagement' %}">班级管理</a> <span class="divider">/</span>  
<a href="">学生管理</a> <span class="divider">/</span>  
 {% endblock title %}
   {% block teacherContent%}
   


    {% if students %}
        <div class="row-fluid">
                        <!-- block -->
                        <div class="block">
                            <div class="navbar navbar-inner block-header">
                                <div class="muted pull-left">班级编号:{{ classID }}</div>
                            </div>
                            <div class="block-content collapse in">
                                <div class="span12">
                                      <form action="{% url 'teacherManagementClass' classID %}" method="post">
                                   {% csrf_token %}  
                                    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
                                     <thead>
                                            <tr>
                                                <th>序号</th>
                                                <th>学号</th>
                                                <th>姓名</th>
                                                <th>班级</th>
                                                <th>专业</th>
                                                <th>学院</th>
                                                <th>成绩</th>
       
                        
                                            </tr>
                                        </thead>
                                        <tbody>
                                         {% for student in students %}
                                               
       
                                            <tr>
                                                <td>{{ forloop.counter }}</td>
                                                <td>{{ student.studentSelectCourse_stduent }}</td>
                                                <td>{{ student.studentSelectCourse_stduent.studentID.userName }}</td>
                                                <td>{{ student.studentSelectCourse_stduent.studentClass }}</td>
                                                <td>{{ student.studentSelectCourse_stduent.studentMajor }}</td>
                                                <td>{{ student.studentSelectCourse_stduent.studentClass }}</td>
                                                <td><input type="text" name="{{ student.studentSelectCourse_stduent }}" value="{{ student.studentSelectCourse_score }}"></td>
                             
                                            </tr>
                             
                                           {% endfor %}
                                        </tbody>
                                    </table>

                                     <button type="submit" class="btn btn-primary">确定提交</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <!-- /block -->
                    </div>
      {% else %}
      <h2>没有学生</h2>
      {% endif %}

      
   {% endblock teacherContent %}
